package com.domain;

import java.io.Serializable;

public class Good implements Serializable {
    private Integer gid;
    private Double gprice;
    private String gname;
    private String gtext;
    private String gsrc;
    private Integer cid;
    private Integer sid;
    private String uid;

    public Good (){

    }

    public Good (int gid,String gname,double gprice,String gtext,String gsrc,int cid,int sid){
        this.gid=gid;
        this.gname=gname;
        this.gprice=gprice;
        this.gtext=gtext;
        this.gsrc=gsrc;
        this.cid=cid;
        this.sid=sid;
    }
    public String getGsrc() {
        return gsrc;
    }

    public void setGsrc(String gsrc) {
        this.gsrc = gsrc;
    }

    public String getGtext() {
        return gtext;
    }

    public void setGtext(String gtext) {
        this.gtext = gtext;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public double getGprice() {
        return gprice;
    }

    public void setGprice(double gprice) {
        this.gprice = gprice;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    @Override
    public String toString() {
        return "Good{" +
                "gid='" + gid + '\'' +
                ", gprice=" + gprice +
                ", gname='" + gname + '\'' +
                ", cid='" + cid + '\'' +
                ", sid='" + sid + '\'' +
                ", uid='" + uid + '\'' +
                ", gtext='" + gtext + '\'' +
                ", gsrc='" + gsrc + '\'' +
                '}';
    }
}
